package com.cn.kabalifeuser.utils;

import android.content.Context;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.cn.kabalifeuser.R;


/**
 * Created by 晓林 on 2019/10/17.
 * function:
 */
public class MyAnimationError {
    /**
     * 抖动
     *
     * @param context
     * @param view
     */
    public static void ErrorAnimation(Context context, View view) {
        Animation shake = AnimationUtils.loadAnimation(context, R.anim.shake_anim);
        view.startAnimation(shake);
    }
}
